package foundation.web.flow;

import org.zkoss.zk.ui.Component;
import org.zkoss.zkplus.databind.AnnotateDataBinder;

import ar.com.sne.bean.BaseBO;

/**
 * @author herann
 */
/**
 * This class implements the abstract behaviour of Navigation manager composer
 * 
 * 
 */
@SuppressWarnings("unchecked")
public abstract class AbstractBaseComposer extends
		AbstractDestinationComposer {	
	
	private AnnotateDataBinder binder;


	public void callBinderAll(){
		if(this.binder!=null){
			this.binder.loadAll();
		}
	}	
	
	public AnnotateDataBinder getBinder(){
		return binder;
	}
	
	
	public void loadComponent(Component component){
		if(this.getBinder()!=null){
			this.getBinder().loadComponent(component);
		}
	}
	
	@Override
	public BaseBO getNewObjectPersistentObjectToAdd(){	
		return null;	
	}
}
